import LayoutProps,{ type ILayoutProps } from './LayoutProps'

export interface IFormItemProps extends ILayoutProps{
  formitem_labelWidth?: number
  formitem_labelAlign?: 'left' | 'right'
}

export default class FormItemProps extends LayoutProps{

  public formitem_labelWidth = 100;
  public formitem_labelAlign = "left" as any;

  constructor(props?:IFormItemProps) {
    super(props);
    if(props){
      this.formitem_labelWidth = props.formitem_labelWidth || this.formitem_labelWidth;
      this.formitem_labelAlign = props.formitem_labelAlign || this.formitem_labelAlign;
    }
  }
}